package models;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import play.data.validation.Required;
import play.db.jpa.Model;

@Table(name="import$groupement")
@Entity
public class Groupement extends Model{
	
	@Required
	@Column(unique=true)
	public String id_groupement;
	
	@Required
	public String nom;
	
	@OneToOne
	public Agent responsable;
	
	public Groupement(String nom){
		this.nom=nom;
	}
	
	public String toString(){
		return this.nom;
	}
}
